package club.lovety.code;

import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.SynchronousQueue;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {


        LinkedBlockingQueue queue = new LinkedBlockingQueue(1);
        queue.add(1);

        ConcurrentLinkedQueue concurrentLinkedQueue = new ConcurrentLinkedQueue();
        concurrentLinkedQueue.add(1);
        concurrentLinkedQueue.add(1);
        concurrentLinkedQueue.add(1);
        concurrentLinkedQueue.add(1);
        System.out.println("Hello World!");

//        Executors.newCachedThreadPool()

        SynchronousQueue synchronousQueue = new SynchronousQueue(true);
        synchronousQueue.add("1");






    }
}
